//
//  WelcomeViewController.m
//  u76ho
//
//  Created by m-air-01 on 16/2/4.
//  Copyright © 2016年 LV. All rights reserved.
//

#import "WelcomeViewController.h"
#import "GuideView.h"

@interface WelcomeViewController ()

@end

@implementation WelcomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self guidePageView];
    // Do any additional setup after loading the view.
}
-(void)guidePageView
{
    //更新不是第一次使用
    [NSUserDefaults setBool:YES forKey:isFirstUse];
    GuideView * view = [[GuideView alloc]initWithFrame:[UIScreen mainScreen].bounds andPhotoArray:@[@"优企－引导1",@"优企－引导2",@"优企－引导3"]];
    view.guideFinish = ^{
        AppDelegate * app = [UIApplication sharedApplication].delegate;
        UINavigationController * nav = [[UINavigationController alloc]initWithRootViewController:app.viewController];
        nav.navigationBar.hidden = YES;
        app.window.rootViewController = nav;
    };
    [self.view addSubview:view];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
